package vng.wcc.sonph.LauncherGenerator;

import android.content.Context;
import android.graphics.Bitmap;
import android.widget.ImageButton;

public class TabCellView extends ImageButton {

	Bitmap iconImage;
	Bitmap highlightImage;
	/** 
	 * Create an image button to control the navigation between pages in the LauncherView 
	 * @param context
	 * @param iconImage normal icon (not selected)  
	 * @param highlightIcon  highlight icon (selected)
	 */
	public TabCellView(Context context,Bitmap iconImage,Bitmap highlightIcon) {
		super(context);
		this.setBackgroundResource(android.R.color.transparent);
		this.iconImage = iconImage;
		this.highlightImage = highlightIcon;		
	}
	
	public void displayNormalIcon() {
		this.setImageBitmap(this.iconImage);
		this.invalidate();
	}
	
	public void displayHighlightIcon() {
		this.setImageBitmap(this.highlightImage);
		this.invalidate();
	}

}
